//
//  YLMallGoodsTitleHeader.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/6.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMallGoodsTitleHeader.h"
#import "YLGlobeHeader.h"
#import <Masonry.h>
@implementation YLMallGoodsTitleHeader


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setUp];
    }
    return self;
}



- (void)setUp
{
    
    self.backgroundColor = YLColor(248, 249, 252);
    
    UIView *line = [[UIView alloc] init];
    [self addSubview:line];
    line.backgroundColor = YLLOrgColor;
    __weak typeof(self) weakSelf = self;
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(weakSelf).mas_offset(10);
        make.top.mas_equalTo(weakSelf).mas_offset(10);
        make.bottom.mas_equalTo(weakSelf).mas_offset(-10);
        make.width.mas_equalTo(3);
    }];
    
    UILabel *label = [[UILabel alloc] init];
    label.font = [UIFont systemFontOfSize:14.0f];
    label.text = @"商品描述";
    label.textColor = YLLineColor;
    [self addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(line.mas_right).mas_offset(5);
        make.top.mas_equalTo(weakSelf).mas_offset(3);
        make.bottom.mas_equalTo(weakSelf).mas_offset(-3);
        
    }];
}

@end
